Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

247
Vistas
How can I debug "Exception while resolving variable in template 'unknown'"?

I keep seeing

DEBUG Exception while resolving variable 'exception_type' in template 'unknown'.

in my django logs, followed by

VariableDoesNotExist: Failed lookup for key [exception_type] in

followed by what looks like a string representation of a a list of dictionaries containing the request, and my entire settings.py file.

Another example:

DEBUG Exception while resolving variable 'lastframe' in template 'unknown'

I feel like I just don't have enough information to debug this. All I know is there's a variable called exception_type in an unknown template. My code doesn't contain the string 'exception_type' anywhere.

How can I debug this? Where should I be looking?

  • Ubuntu 14.04
  • Python 2.7.6
  • Django 1.11
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The point wasn't variable lastframe or variable exception_type you gotta checkout your url, all of the urls, not just back-end url but also the front-end url. Check out the front-end urls and middleware (if you wrote your own middleware files, the best check way is testing admin on your url). I got the same kind of question, when I checked url and middleware, I solved the issue easily.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda